<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<head th:include="include :: header"></head>
	<th:block th:include="include :: bootstrap-fileinput-css" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-control-edit" th:object="${versionControl}">
		<input name="versionId" th:field="*{versionId}" type="hidden">
		<div class="form-group">
			<label class="col-sm-3 control-label"><span style="color:red;">*</span>版本名称：</label>
			<div class="col-sm-8">
				<input name="updateTitle" th:field="*{updateTitle}" class="form-control" type="text" autocomplete="off" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label"><span style="color:red;">*</span>版本号：</label>
			<div class="col-sm-8">
				<input th:field="*{versionNumber}" name="versionNumber" class="form-control" type="text" autocomplete="off" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label"><span style="color:red;">*</span>版本信息：</label>
			<div class="col-sm-8">
				<textarea name="updateContent" class="form-control" required rows="10">[[*{updateContent}]]</textarea>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: bootstrap-fileinput-js" />
<th:block th:include="include :: select2-js" />
<script type="text/javascript">
    var prefix = ctx + "business/versionControl";
    $("#form-control-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-control-edit').serialize());
        }
    }
</script>
</body>
</html>